<?

include_once("download.inc.php");


$string = download("www.wetteronline.de","/cgi-bin/citybild?WMO=10315&LANG=de&BKM=Nordrhein-Westfalen/Muenster&SID=b");

$html = str_get_html($string);

// Find all article blocks
//
$counter =0;
$article2 = $html->find('table.navitable', 0);


       
$article = str_get_html($article2->outertext);
//$article = str_replace("../", "http://www.wdr.de/themen/wetter/",$article );
$article = preg_replace('/(class=".+?)+(")/i', '', $article);
$article = preg_replace('/(align=".+?)+(")/i', '', $article);




$i1 = strpos($article,"<tr"); 
$i2 = strpos($article,"<tr",$i1+3); 
$i3 = strpos($article,"<tr",$i2+3);
$i4 = strpos($article,"<tr",$i3+3); 
$i5 = strpos($article,"<tr",$i4+3); 
$i6 = strpos($article,"<tr",$i5+3); 
$i7 = strpos($article,"<tr",$i6+3); 
$i8 = strpos($article,"<tr",$i7+3); 

$article = substr($article, 0, ($i8));
$article = $article . "</table>";
//
//
//$article = str_replace("h1", "h3",$article );
//$article = str_replace("ü", "&uuml;",$article );
//$article = str_replace("ö", "&ouml;",$article );
//$article = str_replace("ä", "&auml;",$article );
//$article = str_replace("Ü", "&Uuml;",$article );
//$article = str_replace("Ä", "&Auml;",$article );
$article = str_replace("410", "100%;",$article );
//
$article = str_replace("H&ouml;chst-<br>Temperatur", "Max",$article );
$article = str_replace("Tiefst-<br>Temperatur", "Min",$article );
$article = str_replace("<font face=\"Arial,Helvetica\" size=\"1\">", "",$article );
$article = str_replace("</font>", "",$article );
$article = str_replace("<td colspan=\"4\" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regenrisiko:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fahren Sie mit der Maus über das Wetter-Symbol.</td>", "",$article );
 
?>